package cn.wolfcode._IOday01_.text004;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Copy {
    public static void main(String[] args) throws ParseException {
        Date date = new Date();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat();
        String str = "yyyy年MM月dd日HH时mm分ss秒";
        simpleDateFormat.applyPattern(str);
        String format1 = simpleDateFormat.format(date);
        System.out.println(format1);
        Date parse = simpleDateFormat.parse(format1);
        System.out.println("parse = " + parse);


    }
}
